<%@ page import="entity.MetaverseProduct" %>
<%@ page import="service.MetaverseService" %>
<%@ page import="service.impl.MetaverseServiceImpl" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="jQuery3.6.0.js"></script>
</head>
<body>
    <%
        MetaverseService metaverseService = new MetaverseServiceImpl();
        List<MetaverseProduct> list = metaverseService.SelectAll();
    %>
    <table border="1px">
        <tr>
            <th>编号</th>
            <th>名称</th>
            <th>描述</th>
            <th>价格</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        <%
            for (MetaverseProduct metaverseProduct : list){
        %>
        <tr>
            <th><%=metaverseProduct.getId()%></th>
            <th><%=metaverseProduct.getProductName()%></th>
            <th><%=metaverseProduct.getProductPrice()%></th>
            <th><%=metaverseProduct.getProductDesc()%></th>
            <th>
                <%=metaverseProduct.getFlag()%>
            </th>
            <th>
                <a href="">修改</a>
                <a href="Delete_do.jsp?id=<%=metaverseProduct.getId()%>">删除</a>
            </th>
        </tr>
        <%
            }
        %>
    </table>
</body>
</html>
